package com.yuandian.api.business_monitor.vo;

import lombok.Data;

/**
 * 说明：首页大屏-系统总览vo对象
 * @Author yanjun
 * @Date 2020/9/25 15:49
 */
@Data
public class SystemOverview {

    /**
     * 系统id
     */
    private Integer systemId;

    /**
     * 系统名称
     */
    private String systemName;

    /**
     * 业务量
     */
    private Integer systemBusiTotal = 0;

    /**
     * 请求量
     */
    private Integer reqCount = 0;

    /**
     * 告警量
     */
    private Integer alarmCount = 0;

    /**
     * 健康度
     */
    private String healthRatio = "100.00";

	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;

		SystemOverview that = (SystemOverview) o;

		if (!systemId.equals(that.systemId)) return false;
		return systemName.equals(that.systemName);
	}

	@Override
	public int hashCode() {
		int result = systemId.hashCode();
		result = 31 * result + systemName.hashCode();
		return result;
	}
}
